1
/****************************** Module Header ******************************\
2 * Module Name: DWebBrowserEvents2.cs
3 * Project: CSTabbedWebBrowser
4 * Copyright (c) Microsoft Corporation.
6 * The interface DWebBrowserEvents2 designates an event sink interface that an
7 * application must implement to receive event notifications from a WebBrowser
8 * control or from the Windows Internet Explorer application. The event
9 * notifications include NewWindow3 event that will be used in this
12 * To get the full event list of DWebBrowserEvents2, see
13 * http://msdn.microsoft.com/en-us/library/aa768283(VS.85).aspx
15 * This source is subject to the Microsoft Public License.
16 * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
17 * All other rights reserved.
19 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
20 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
21 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
22 \***************************************************************************/
25 using System
.Runtime
.InteropServices
;
27 namespace CSTabbedWebBrowser
29 [ComImport
, TypeLibType(TypeLibTypeFlags
.FHidden
),
30 InterfaceType(ComInterfaceType
.InterfaceIsIDispatch
),
31 Guid("34A715A0-6587-11D0-924A-0020AFC7AC4D")]
32 public interface DWebBrowserEvents2
37 /// <param name="ppDisp">
38 /// An interface pointer that, optionally, receives the IDispatch interface
39 /// pointer of a new WebBrowser object or an InternetExplorer object.
41 /// <param name="Cancel">
42 /// value that determines whether the current navigation should be canceled
44 /// <param name="dwFlags">
45 /// The flags from the NWMF enumeration that pertain to the new window
46 /// See http://msdn.microsoft.com/en-us/library/bb762518(VS.85).aspx.
48 /// <param name="bstrUrlContext">
49 /// The URL of the page that is opening the new window.
51 /// <param name="bstrUrl">The URL that is opened in the new window.</param>
54 [In
, Out
, MarshalAs(UnmanagedType
.IDispatch
)] ref object ppDisp
,
55 [In
, Out
] ref bool Cancel
,
57 [In
, MarshalAs(UnmanagedType
.BStr
)] string bstrUrlContext
,
58 [In
, MarshalAs(UnmanagedType
.BStr
)] string bstrUrl
);